package com.example.demo.entity;

import java.io.Serializable;
import java.util.Objects;

public class SocType implements Serializable {
    private Integer socid;
    private String socname;

    public SocType(Integer socid, String socname) {
        this.socid = socid;
        this.socname = socname;
    }

    public SocType() {
    }

    public Integer getSocid() {
        return socid;
    }

    public void setSocid(Integer socid) {
        this.socid = socid;
    }

    public String getSocname() {
        return socname;
    }

    public void setSocname(String socname) {
        this.socname = socname;
    }

    @Override
    public String toString() {
        return "SocType{" +
                "socid=" + socid +
                ", socname='" + socname + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SocType socType = (SocType) o;
        return Objects.equals(socid, socType.socid) && Objects.equals(socname, socType.socname);
    }

    @Override
    public int hashCode() {
        return Objects.hash(socid, socname);
    }
}
